package com.ljx.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 李加喜
 * @date 2020/10/2 0002 21:13
 * @Email 1129071273@qq.com
 */
@Component
@FeignClient(value = "service-order",fallback = OrdersInterfaceClient.class)
public interface OrdersClient {
    //根据课程的Id与用户的id查询课程的状态是已支付还是未支付来判断来判断当前是立即观看还是立即购买
    @GetMapping("/eduorder/order/isBuyCourse/{courseId}/{memberId}")
    public Boolean isBuyCourse(@PathVariable("courseId") String courseId, @PathVariable("memberId") String memberId);
}
